package com.wn.controller;

import com.wn.bean.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static org.junit.platform.commons.function.Try.success;

@RestController
public class HelloController extends BaseController{


    @RequestMapping("hello")
    public String hello(){
      return "hello baby";

    };

    @RequestMapping("demo01")
    public Result demo01(){
        return success();
    }

    @RequestMapping("demo02")
    public Result demo02(){
        return  toDataResult("请求成功");
    }


}
